package pokerTests;

import junit.framework.TestCase;
import poker.*;

public class TableTestWinners extends TestCase {
	public void testOfTable() throws Exception {
		int table[][] = { { 9, 6, 0, 0, 0, 0 },
						  { 9, 5, 0, 0, 0, 0 },
						  { 2, 4, 9, 6, 5, 0 },
						  { 1, 6, 4, 3, 2, 1 } };
		int players[] = { -1, 1, 2, 3 };
		
		Table.findWinner(table, players);
		assertSame(players[0], -1);
		assertSame(players[1], 1);
		assertSame(players[2], -1);
		assertSame(players[3], -1);
	}
}

